package com.example.aopdemo.controller;

/*
 * @author zzr
 * @date: 2025/10/03  13:03
 * @description:
 */

import com.example.aopdemo.config.MyAspect;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/u1")
    @MyAspect
    public String u1() {
        return "u1";
    }

    @RequestMapping("/u2")
    public String u2() {
        return "u2";
    }
}
